package com.iiot.manage.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import java.io.Serializable;

/**
 * <p>
 * 设备
 * </p>
 *
 * @author danielzy
 * @since 2019-07-18
 */
public class DeviceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long code;
    /**
     * 名称
     */
    private String name;
    /**
     * 项目编号
     */
    @TableField("projectCode")
    private Long projectCode;
    /**
     * 类型编号
     */
    @TableField("typeCode")
    private Long typeCode;
    /**
     * 型号编号
     */
    @TableField("modeCode")
    private Long modeCode;
    /**
     * 关联设备
     */
    @TableField("linkedCode")
    private Long linkedCode;
    /**
     * 位置
     */
    private String address;
    /**
     * 备注信息
     */
    private String memo;
    /**
     * 删除标识
     */
    private Integer delete;
    /**
     * 当前标识
     */
    private Integer current;
    /**
     * 版本（乐观锁保留字段）
     */
    private Integer version;


    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(Long projectCode) {
        this.projectCode = projectCode;
    }

    public Long getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(Long typeCode) {
        this.typeCode = typeCode;
    }

    public Long getModeCode() {
        return modeCode;
    }

    public void setModeCode(Long modeCode) {
        this.modeCode = modeCode;
    }

    public Long getLinkedCode() {
        return linkedCode;
    }

    public void setLinkedCode(Long linkedCode) {
        this.linkedCode = linkedCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getDelete() {
        return delete;
    }

    public void setDelete(Integer delete) {
        this.delete = delete;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "DeviceInfo{" +
        "code=" + code +
        ", name=" + name +
        ", projectCode=" + projectCode +
        ", typeCode=" + typeCode +
        ", modeCode=" + modeCode +
        ", linkedCode=" + linkedCode +
        ", address=" + address +
        ", memo=" + memo +
        ", delete=" + delete +
        ", current=" + current +
        ", version=" + version +
        "}";
    }
}
